package com.supreme.cacheserver.config.props;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "redisson")
public class RedissonProps {

    private String host;

    private String port;

    private String password;

    @Value("3000")
    private Integer timeout;

    @Value("4")
    private int database;

    @Value("64")
    private int connectionPoolSize;

    @Value("10")
    private int connectionMinimumIdleSize;
}
